// 1. 初始化Git

import 'package:flutter/material.dart';

void main() {
  runApp(MaterialApp(
    home: Main(),
  ));
  
}

class Main extends StatelessWidget {
const Main({ Key? key }) : super(key: key);

  @override
  Widget build(BuildContext context){
    return Scaffold(
      appBar: AppBar(title: Text('Container组件的使用'), backgroundColor: Colors.pink,),
      body: Container(
        width: 300,
        height: 500,
        margin: EdgeInsets.all(30),
        padding: EdgeInsets.all(30),
        decoration: BoxDecoration(
          color: Colors.green,
          border: Border.all(color: Colors.red, width: 5),
          borderRadius: BorderRadius.all(Radius.circular(24))
        ),
        child: 
        Container(
          alignment: Alignment.center,
          child: Text('喜欢It LikeIt'),
          color: Colors.yellow,
        ),
      )
    );
  }
}